package com.service.impl;

import com.dao.CheckingDao;
import com.dao.impl.CheckingDaoImpl;
import com.domain.Checking;
import com.service.CheckingService;


import java.util.ArrayList;

public class CheckingServiceImpl implements CheckingService {
    private final CheckingDao dao = new CheckingDaoImpl();
    @Override
    public Boolean save(Checking checking) {
        return dao.save(checking);
    }

    @Override
    public Boolean delete(int id) {
        return dao.delete(id);
    }

    @Override
    public ArrayList<Checking> select() {
        return dao.select();
    }

    @Override
    public Boolean update(Checking checking) {
        return dao.update(checking);
    }
}
